package org.example;

public class ThreadLocalUtils {
    public static ThreadLocal<Object> threadLocal=new ThreadLocal<>();

    static {
        Object object = new Object();
        System.out.println("ThreadLocalUtils静态代码块执行了,放入对象的hashCode="+System.identityHashCode(object)+"----执行线程是:"
                +Thread.currentThread().getName());
        threadLocal.set(object);
    }

}
